package com.example.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

import java.sql.Time;
import java.util.Date;

/**
 * 座位预约请求DTO
 * 
 * @author HP
 * @description 用于接收座位预约请求的数据传输对象
 * @createDate 2025-08-26 19:35:00
 */
@Data
@Schema(description = "座位预约请求")
public class SeatReservationRequestDTO {

    @Schema(description = "座位ID", required = true, example = "1")
    @NotNull(message = "座位ID不能为空")
    private Long seatId;

    @Schema(description = "开始时间", required = true, example = "09:00:00")
    @NotNull(message = "开始时间不能为空")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @Schema(description = "结束时间", required = true, example = "18:00:00")
    @NotNull(message = "结束时间不能为空")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

}